<% content_for :title do %>Overzicht categorieen<% end %>

<table>
  <tr>
    <th>Naam</th>
    <th colspan="3">&nbsp;</th>
  </tr>

<% @categories.each do |category| %>
  <tr>
    <td><% category.depth.times { concat "- " } %><%=h category.name %></td>
    <td><%= link_to 'Toon', category_path(category) %></td>
    <td><%= link_to 'Edit', edit_admin_category_path(category) %></td>
    <td><%= link_to 'Verwijder', admin_category_path(category), :confirm => 'Weet u het zeker?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Maak nieuwe categorie aan', new_admin_category_path %> |
<%= link_to 'Terug', root_path %>